package com.codeblue.tools.codeGenerator;

import java.util.ArrayList;
import java.util.List;
public class UIDesc {

	private String cn_name; //中文名
	private String compontId; //组件ID 由jquery选器使用
	private String  valueField; //组件值的字段
	private String textField;   //组件显示的字段
	private String uiType;     //组件类型
	
	private String url;     //ajax 组件请求URL
	private String param ;  //ajax 组件请求参数
	
	private String compontValue; //{info.name} 格式
	private List<UIDesc> children = new ArrayList<UIDesc>();  //  适用于 select 类型组件 以及其他复合组件
	
	public List<UIDesc> getChildren() {
		return children;
	}
	public void setCompontValue(String compontValue) {
		this.compontValue = compontValue;
	}
	public String getCompontValue() {
		return "${info."+compontId+"}";
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getParam() {
		return param;
	}
	public void setParam(String param) {
		this.param = param;
	}
	public String getCn_name() {
		return cn_name;
	}
	public void setCn_name(String cn_name) {
		this.cn_name = cn_name;
	}
	public String getCompontId() {
		return compontId;
	}
	public void setCompontId(String compontId) {
		this.compontId = compontId;
	}
	public String getValueField() {
		return valueField;
	}
	public void setValueField(String valueField) {
		this.valueField = valueField;
	}
	public String getTextField() {
		return textField;
	}
	public void setTextField(String textField) {
		this.textField = textField;
	}
	public String getUiType() {
		return uiType;
	}
	public void setUiType(String uiType) {
		this.uiType = uiType;
	}
	
	

}
